# Contributor: Rejah Rehim <rejah@beaglesecurity.com>
# Maintainer: Rejah Rehim <rejah@beaglesecurity.com>
pkgname=py3-radon
_pkgname=radon
pkgver=6.0.1
pkgrel=0
pkgdesc="Code Metrics in Python"
options="!check" # no test suite
url="https://radon.readthedocs.org/"
arch="noarch"
license="MIT"
depends="python3 py3-colorama py3-future py3-mando"
makedepends="py3-setuptools"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/r/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/radon/tests
	install -Dm644 README.rst -t "$pkgdir"/usr/share/doc/"$pkgname"
	install -Dm644 LICENSE  -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
91bd091610568dacb95491ba314b68dfb33ee397b043ae96badc7c134a841122d90394a36b1d665c9cabf273c0e6128217ebfc459c36020c12dcab647dd5df53  radon-6.0.1.tar.gz
"
